﻿import com.dinmax.flash.common.collection.*
import com.dinmax.flash.draw.control.*

class Action {
	
	private var name:String;
	private var _data:Collection;

	function Action(name:String){
	this.name=name;
	_data=new Collection();
	}

	public function addData(key:String, value:Object):Void{
	_data.addItem(key, value);
	}

	public function getData(key:String):Object{
	return _data.getItem(key).getValue();
	}

	public function removeData():Void{
	_data=new Collection();
	}

	public function getName():String{
	return name;
	}
	public function setName(name:String):Void{
	this.name=name;
	}

} // fin de clase